package com.xt.base.dao.hibernate;

import java.util.Map;

import org.hibernate.HibernateException;
import org.hibernate.LockMode;
import org.hibernate.MappingException;
import org.hibernate.Query;
import org.hibernate.SQLQuery;
import org.hibernate.type.Type;

public class ReadOnlySQLQueryImpl extends ReadOnlyQueryImpl implements SQLQuery{

	public ReadOnlySQLQueryImpl( SQLQuery sq){
		super(sq);
	}
	
	public SQLQuery addEntity(String arg0) {
		((SQLQuery)query).addEntity(arg0);
		return this;
	}

	public SQLQuery addEntity(Class arg0) {
		((SQLQuery)query).addEntity(arg0);
		return this;
	}

	public SQLQuery addEntity(String arg0, String arg1) {
		((SQLQuery)query).addEntity(arg0,arg1);
		return this;
	}

	public SQLQuery addEntity(String arg0, Class arg1) {
		((SQLQuery)query).addEntity(arg0,arg1);
		return this;
	}

	public SQLQuery addEntity(String arg0, String arg1, LockMode arg2) {
		((SQLQuery)query).addEntity(arg0,arg1,arg2);
		return this;
	}

	public SQLQuery addEntity(String arg0, Class arg1, LockMode arg2) {
		((SQLQuery)query).addEntity(arg0,arg1,arg2);
		return this;
	}

	public SQLQuery addJoin(String arg0, String arg1) {
		((SQLQuery)query).addJoin(arg0,arg1);
		return this;
	}

	public SQLQuery addJoin(String arg0, String arg1, LockMode arg2) {
		((SQLQuery)query).addJoin(arg0,arg1,arg2);
		return this;
	}

	public SQLQuery addScalar(String arg0) {
		((SQLQuery)query).addScalar(arg0);
		return this;
	}

	public SQLQuery addScalar(String arg0, Type arg1) {
		((SQLQuery)query).addScalar(arg0,arg1);
		return this;
	}

	public SQLQuery setResultSetMapping(String arg0) {
		((SQLQuery)query).setResultSetMapping(arg0);
		return this;
	}

	public SQLQuery addSynchronizedEntityClass(Class entityClass)
			throws MappingException {
		// TODO Auto-generated method stub
		return null;
	}

	public SQLQuery addSynchronizedEntityName(String entityName)
			throws MappingException {
		// TODO Auto-generated method stub
		return null;
	}

	public SQLQuery addSynchronizedQuerySpace(String querySpace) {
		// TODO Auto-generated method stub
		return null;
	}

	public Query setProperties(Map bean) throws HibernateException {
		// TODO Auto-generated method stub
		return null;
	}
}
